package com.jdym.back.service.impl;

import com.jdym.back.entity.Firm;
import com.jdym.back.mapper.FirmMapper;
import com.jdym.back.service.FirmService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 企业表 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-09-20
 */
@Service
public class FirmServiceImpl extends ServiceImpl<FirmMapper, Firm> implements FirmService {
    @Resource
    FirmMapper firmMapper;

    @Override
    public List<Firm> getAllLoanFirm() {

        return firmMapper.getAllLoanFirm();
    }

    @Override
    public Firm getFirmById(int firmId) {
        return baseMapper.selectById(firmId);
    }

    @Override
    public List<Firm> getLoanFirm(String key) {
        return firmMapper.getLoanFirm(key);

    }


}
